package cn.cjp.m3d22;

public class MadeHero {

    public static void main(String[] args) {
        Hero hero = new Hero();
        hero.setName("提莫");
        //创建类成员变量
        Weapon weapon = new Weapon("毒箭");
        hero.setWeapon(weapon);

        //创建接口成员变量
        hero.setSkill(new SkillImpl());
        hero.method1();
    }
}
